package edu.technion.cse.simpleGoogleMaps;

import junit.framework.TestCase;

public class SimpleGoogleMapsTest extends TestCase {
	private SimpleGoogleMaps sgm;

	protected void setUp() throws Exception {
		super.setUp();
		sgm = new SimpleGoogleMaps();
	}
	
	public void testSimple() {    	
    	sgm.setLatitude(40.714728);
    	sgm.setLongitude(-73.998672);
    	sgm.setZoom(12);
		String expected = "http://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=400x400&maptype=roadmap&scale=1&language=iw&sensor=false";
		String actual = sgm.generateUrl();
		assertEquals(expected, actual);
	}
	
	public void testTitle() {
		String expected = "New-York";
		String actual = "New-York";
		assertEquals(expected, actual);
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

}
